import React from 'react'
import {Route, Switch, HashRouter} from 'react-router-dom'
import Login from './pages/login/login'
import Home from './pages/home/index'
import Main from './pages/main/main'
import state from './pages/statepage/statepage'
import reactRedux from './pages/react-redux'
export  default  () => {
  return (
    <div>
      <HashRouter>
        <Switch>
          <Route path="/login" exact component={Login}></Route>
          <Route path="/home" exact component={Home}></Route>
          <Route path="/main" exact component={Main}></Route>
          <Route path="/state" exact component={state}></Route>
          <Route path="/reactRedux" exact component={reactRedux}></Route>
        </Switch>
      </HashRouter>
    </div>
  )
}